#ifndef INITCONNECTWIN_H
#define INITCONNECTWIN_H

#include <QWidget>
#include <QStackedWidget>
#include <QPushButton>
#include <QTimer>
#include <kysdk/applications/ktabbar.h>
#include "interface_win.h"
#include "usbconnwin.h"

using namespace kdk;

class InitConnectWin : public QWidget
{
    Q_OBJECT
public:
    explicit InitConnectWin(QWidget *parent = nullptr);

    ~InitConnectWin();

    void setDefaultStatus();

    void setInterFaceCodeInfo(QString codeInfo = "");

    void setOnConnection(bool isConnection);

    // 浅色模式样式
    void setLightUI();

    // 深色模式样式
    void setDarkUI();

Q_SIGNALS:
    void sigUSBconnectBtnClicked();

private:
    void initConnect();

private:
    InterfaceWin *m_interfaceWin = nullptr;
    UsbConnWin *m_usbConnWin = nullptr;
    QStackedWidget *m_stackedWin = nullptr;
    KTabBar *m_tabBar = nullptr;

public Q_SLOTS:
    void slotTabBarClicked(int index);
};

#endif // INITCONNECTWIN_H
